using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Jfc007.WebLib
{
    public class CheckboxColumnTemplate : System.Web.UI.ITemplate
    {
        //Shared itemcount As Integer = 0
        private System.Web.UI.WebControls.ListItemType mobjTemplateType;
        private string mstrID;
        private string mstrCaption;
        public CheckboxColumnTemplate ( string id, string caption, ListItemType type )
        {
            mobjTemplateType = type;
            mstrID = id;
            mstrCaption = caption;

        }

        public void InstantiateIn ( System.Web.UI.Control container )
        {
            System.Web.UI.WebControls.CheckBox objCheckbox = new CheckBox();

            /*switch (mobjTemplateType)
            {
                case ListItemType.Item:
                case ListItemType.AlternatingItem:
                case ListItemType.SelectedItem:
                    {
                        objButton.Text = mstrCaption;
                        objButton.NavigateUrl =
                        objButton.ID = mstrID;
                        break;
                    }
            }*/
            container.Controls.Add( objCheckbox );
            //itemcount += 1
        }
    }
   
}
